import os


class ServiceController(object):
    
    @staticmethod
    def sudoStartSyslogd():
        os.system('gksudo service rsyslog start')
        return True
        
    @staticmethod
    def sudoStopSyslogd():
        os.system('gksudo service rsyslog stop')
        return False
        
    @staticmethod
    def sudoRestartSyslogd():    
        os.system('gksudo service rsyslog restart')
        return True
    
    @staticmethod
    def startSyslogd():
        os.system('service rsyslog start')
        return True
        
    @staticmethod
    def stopSyslogd():
        os.system('service rsyslog stop')
        return False
    
    @staticmethod
    def restartSyslogd():    
        os.system('service rsyslog restart')
        return True